import requests


class CxHTMLDownloader(object):
    def __init__(self):
        pass

    def Cxdownload(self, url):
        # 下载页面，并将之返回
        if (url is None):
            print("下载页面的地址：" + url + "  为空")
            return None
        else:
            html = requests.get(url=url)
            html.encoding = html.apparent_encoding
            return html.text
